package com.amado.course28Exception;
/**
 * 继承RuntimeException为运行时异常
 * 自定义异常
 * @author Administrator
 *
 */
public class S04ApiRuntimeException extends RuntimeException {
	/**
	 * 异常码
	 */
	private String code;
	/**
	 * 异常名称
	 */
	private String errorMessage;
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getErrorMessage() {
		return errorMessage;
	}
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
	public S04ApiRuntimeException(String code, String errorMessage) {
		super();
		this.code = code;
		this.errorMessage = errorMessage;
	}
	
	
	
}
